home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 362 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.7 KB  |  42 lines

  1. Newsgroups: comp.std.c
  2. Path: phcoms4.seri.philips.nl!panther!baynes
  3. From: baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes)
  4. Subject: Re: help with float conversion needed
  5. Sender: news@ukpsshp1.serigate.philips.nl (account for localnews)
  6. Message-ID: <Dn8BLG.LBr@ukpsshp1.serigate.philips.nl>
  7. Date: Fri, 23 Feb 1996 12:48:52 GMT
  8. References: <heller-2202961807440001@mac3.ifr.ing.tu-bs.de>
  9. Organization: Philips Semiconductors, Southampton, UK
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Heller (heller@ifr.ing.tu-bs.de) wrote:
  13.  
  14.  
  15. : I am developing control applications with a 68040-VMEbus board. For
  16. : simple I/O-Operations and interfacing I need C-functions to convert
  17. : float/double to int or long int. Unfortunately my compiler package 
  18. : does not support float operations or standard I/O. 
  19. : Therefore I have to implement all functions on my own.
  20.  
  21. I assume you have a FREESTANDING ANSI C compiler.
  22. This must support floating point to be conforming, so you will have to
  23. take that up with your vendor. It does not have to support standard IO so
  24. you may have to write what you need. (Hosted compilers do have to support
  25. standard IO.)
  26.  
  27. : Is there anybody who wrote such conversion routines or knows where
  28. : I can find some on the net ?
  29.  
  30. You won't get much on this newsgroup.
  31. You could try on something like comp.sources.wanted. You could look
  32. at a public domain compiler such as GCC (this accepts ANSI C and I am
  33. sure there are versions that generate 68k code). You can also read
  34. "The standard C library" by P.J.Plauger, publisher Prentice Hall. ISBN 
  35. 0-13131509-9 which contains example implementations.
  36.  
  37. --
  38. Stephen Baynes                              baynes@mulsoc2.serigate.philips.nl
  39. Philips Semiconductors Ltd
  40. Southampton                                 My views are my own.
  41. United Kingdom
  42.